home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 7719 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  52 lines

  1. Newsgroups: comp.lang.c++
  2. Path: bath.ac.uk!uwe-bristol!teapot!jp-morri
  3. From: jp-morri@csm.uwe.ac.uk (J Morris)
  4. Subject: Re: DPMI mode Hangs it?
  5. Message-ID: <1996Feb19.084939.7870@pat.uwe.ac.uk>
  6. To: Steve Snively <snively9@starnetinc.com>
  7. Sender: usenet@pat.uwe.ac.uk (uwe nntp usenet poster)
  8. Nntp-Posting-Host: usenet@pat.uwe.ac.uk (uwe nntp usenet poster)
  9. Organization: University of the West of England.
  10. X-Newsreader: xrn 7.04-beta-2
  11. References:  <3126E0BD.9A@starnetinc.com>
  12. Date: Mon, 19 Feb 1996 08:49:39 GMT
  13.  
  14. In article <3126E0BD.9A@starnetinc.com>, Steve Snively <snively9@starnetinc.com> writes:
  15. > I recently started a project in which I needed to access Extended 
  16. > Memory, and so I found some ASM to access the functions of HIMEM.SYS.  
  17. > Well, heres my problem, when working in the design window (Borland Turbo 
  18. > C++) and i go to run, the program hangs.  But if I run the same EXE I 
  19. > just compiled right from DOS it works fine.  I believe that TC runs in 
  20. > DPMI, ie: protected mode, and this may be the source of my problems.  
  21. >     Does anyone know a way of running the Borland Turbo C++ design 
  22. > environment in real mode, via a switch or something, without reverting to 
  23. > command line stuff? 
  24. >     Perhaps a different version supports this?
  25.  
  26. Borland version 2 had two programs: BC (rm) and BCX (pm).
  27.  I suppose you're using version 3.
  28.  
  29. I suppose this is obvious, but you are using the XMS properly, aren't you?
  30. If you're playing with the XMS directly and not allocating it properly,
  31. you'll probably end up twisting the compilers guts around and it won't like
  32. that.
  33.  
  34. DOS, on the other hand wouldn't notice.
  35.  
  36. To eliminate this possiblity, try running the program under other protected
  37. mode environments, like Windows.
  38.  
  39. > Thanks for any assistance you could provide.   Steve.
  40. > Snively9@starnetinc.com
  41.  
  42. -- 
  43. *****************************************************************************
  44. *J.P Morris, IT-HE Software * jp-morri@csm.uwe.ac.uk * NOT a UWE spokeman   *
  45. *****************************************************************************
  46.  
  47.  
  48.  
  49.  
  50.  
  51.